/**
 * @param {number[]} nums1
 * @param {number[]} nums2
 * @return {number}
 */
var findMedianSortedArrays = function(nums1, nums2) {

  const result = nums1.concat(nums2).sort((a,b)=>a-b)

  const length = result.length;
  if(length%2===0){

    console.log(length/2)

  }else{

    console.log(Math.floor(length/2))

  }
    
};



var numbers1= [1,2,4]

var numbers2= [2,3,5,7]

findMedianSortedArrays(numbers1,numbers2)
